Produced by Araxis Merge on 2021-05-13 09:08:40 +0000. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | /Applications/Ampps/www/Porto 3.2.2/Theme Files/Magento 2.x/Porto Theme/app/code/Smartwave/Megamenu/view/frontend/templates/onepagecategory | products_area.phtml | 2019-09-10 14:37:00 +0000 |
| 2 | /Applications/Ampps/www/Porto v4.0.0/Theme Files/Magento 2.x/Porto Theme/app/code/Smartwave/Megamenu/view/frontend/templates/onepagecategory | products_area.phtml | 2021-03-28 10:41:54 +0000 |
| Description | Between Files 1 and 2 | |
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 7 | 686 |
| Changed | 6 | 13 |
| Inserted | 0 | 0 |
| Removed | 0 | 0 |
| Whitespace | Consecutive whitespace is treated as a single space |
|---|---|
| Character case | Differences in character case are significant |
| Line endings | Differences in line endings (CR and LF characters) are ignored |
| CR/LF characters | Not shown in the comparison detail |
| Active line-pairing rules |
No regular expressions were active.
| 1 | <?php | 1 | <?php | |||
| 2 | /** | 2 | /** | |||
| 3 | * Copyright © 2015 Magento. All rights reserved. | 3 | * Copyright © 2015 Magento. All rights reserved. | |||
| 4 | * See COPYING.txt for license details. | 4 | * See COPYING.txt for license details. | |||
| 5 | */ | 5 | */ | |||
| 6 | use Magento\Framework\App\Action\Action; | 6 | use Magento\Framework\App\Action\Action; | |||
| 7 | 7 | |||||
| 8 | // @codingStandardsIgnoreFile | 8 | // @codingStandardsIgnoreFile | |||
| 9 | ?> | 9 | ?> | |||
| 10 | <?php | 10 | <?php | |||
| 11 | /** | 11 | /** | |||
| 12 | * Product list template | 12 | * Product list template | |||
| 13 | * | 13 | * | |||
| 14 | * @var $block \Smartwave\Filterproducts\Block\ | 14 | * @var $block \Smartwave\Filterproducts\Block\ | |||
| 15 | */ | 15 | */ | |||
| 16 | ?> | 16 | ?> | |||
| 17 | <?php | 17 | <?php | |||
| 18 | $_productCollection = $block->getLoadedProductCollection(); | 18 | $_productCollection = $block->getLoadedProductCollection(); | |||
| 19 | $_helper = $this->helper('Magento\Catalog\Helper\Output'); | 19 | $_helper = $this->helper('Magento\Catalog\Helper\Output'); | |||
| 20 | $_imagehelper = $this->helper('Magento\Catalog\Helper\Image'); | 20 | $_imagehelper = $this->helper('Magento\Catalog\Helper\Image'); | |||
| 21 | $_portohelper = $this->helper('Smartwave\Porto\Helper\Data'); | 21 | $_portohelper = $this->helper('Smartwave\Porto\Helper\Data'); | |||
| 22 | $menu_helper = $this->helper('Smartwave\Megamenu\Helper\Data'); | 22 | $menu_helper = $this->helper('Smartwave\Megamenu\Helper\Data'); | |||
| 23 | $review_model = $_portohelper->getModel('\Magento\Review\Model\Review'); | 23 | $review_model = $_portohelper->getModel('\Magento\Review\Model\Review'); | |||
| 24 | $_category_config = $_portohelper->getConfig('porto_settings/category'); | 24 | $_category_config = $_portohelper->getConfig('porto_settings/category'); | |||
| 25 | $_category_grid_config = $_portohelper->getConfig('porto_settings/category_grid'); | 25 | $_category_grid_config = $_portohelper->getConfig('porto_settings/category_grid'); | |||
| 26 | $_product_label_config = $_portohelper->getConfig('porto_settings/product_label'); | 26 | $_product_label_config = $_portohelper->getConfig('porto_settings/product_label'); | |||
| 27 | 27 | |||||
| 28 | $aspect_ratio = $this->getData("aspect_ratio"); | 28 | $aspect_ratio = $this->getData("aspect_ratio"); | |||
| 29 | if($aspect_ratio == null) { | 29 | if($aspect_ratio == null) { | |||
| 30 | $aspect_ratio = 1; | 30 | $aspect_ratio = 1; | |||
| 31 | } | 31 | } | |||
| 32 | $image_width = $this->getData("image_width"); | 32 | $image_width = $this->getData("image_width"); | |||
| 33 | if(!$image_width) { | 33 | if(!$image_width) { | |||
| 34 | $image_width = 300; | 34 | $image_width = 300; | |||
| 35 | } | 35 | } | |||
| 36 | $image_height = $this->getData("image_height"); | 36 | $image_height = $this->getData("image_height"); | |||
| 37 | if(!$image_height) { | 37 | if(!$image_height) { | |||
| 38 | $image_height = 300; | 38 | $image_height = 300; | |||
| 39 | } | 39 | } | |||
| 40 | 40 | |||||
| 41 | $_lazyload = $_portohelper->getConfig('porto_settings/optimization/lazyload'); | 41 | $_lazyload = $_portohelper->getConfig('porto_settings/optimization/lazyload'); | |||
| 42 | $category_id = $this->getData("category_id"); | 42 | $category_id = $this->getData("category_id"); | |||
| 43 | 43 | |||||
| 44 | $columns = $this->getData('columns'); | 44 | $columns = $this->getData('columns'); | |||
| 45 | 45 | |||||
| 46 | $product_type = $this->getData("product_type"); | 46 | $product_type = $this->getData("product_type"); | |||
| 47 | if($product_type == null) { | 47 | if($product_type == null) { | |||
| 48 | $product_type = $_category_grid_config['product_type']; | 48 | $product_type = $_category_grid_config['product_type']; | |||
| 49 | } | 49 | } | |||
| 50 | if($product_type == null) { | 50 | if($product_type == null) { | |||
| 51 | $product_type = 1; | 51 | $product_type = 1; | |||
| 52 | } | 52 | } | |||
| 53 | 53 | |||||
| 54 | $cat_model = $menu_helper->getCategoryModel($category_id); | 54 | $cat_model = $menu_helper->getCategoryModel($category_id); | |||
| 55 | ?> | 55 | ?> | |||
| 56 | <a href="<?php echo $cat_model->getUrl(); ?>" class="category-link"><?php echo __("See More"); ?></a> | 56 | <a href="<?php echo $cat_model->getUrl(); ?>" class="category-link"><?php echo __("See More"); ?></a> | |||
| 57 | <div class="onepagecategory-products" id="cat_prod_<?php echo $category_id; ?>"> | 57 | <div class="onepagecategory-products" id="cat_prod_<?php echo $category_id; ?>"> | |||
| 58 | <?php if (!$_productCollection->count()): ?> | 58 | <?php if (!$_productCollection->count()): ?> | |||
| 59 | <div class="message info empty"><div><?php echo __('We can\'t find products matching the selection.') ?></div></div> | 59 | <div class="message info empty"><div><?php echo __('We can\'t find products matching the selection.') ?></div></div> | |||
| 60 | <?php else: ?> | 60 | <?php else: ?> | |||
| 61 | <?php | 61 | <?php | |||
| 62 | $viewMode = 'grid'; | 62 | $viewMode = 'grid'; | |||
| 63 | $image = 'category_page_grid'; | 63 | $image = 'category_page_grid'; | |||
| 64 | $hover_image = 'category_page_grid-hover'; | 64 | $hover_image = 'category_page_grid-hover'; | |||
| 65 | $showDescription = false; | 65 | $showDescription = false; | |||
| 66 | $templateType = \Magento\Catalog\Block\Product\ReviewRendererInterface::SHORT_VIEW; | 66 | $templateType = \Magento\Catalog\Block\Product\ReviewRendererInterface::SHORT_VIEW; | |||
| 67 | ?> | 67 | ?> | |||
| 68 | <div class="products | 68 | <div class="products wpb_content_element wrapper <?php echo $viewMode; ?> products-<?php echo $viewMode; ?> <?php if($product_type == 2): ?>no-padding divider-line<?php endif; ?> <?php if($product_type == 5 || $product_type == 6 || $product_type == 7 || $product_type == 8): ?>no-padding<?php endif; ?> <?php if($product_type == 6): ?>divider-line<?php endif; ?>"> | |||
| 69 | <?php $iterator = 1; ?> | 69 | <?php $iterator = 1; ?> | |||
| 70 | <div class="filterproducts products list items product-items owl-carousel"> | 70 | <div class="filterproducts products list items product-items owl-carousel"> | |||
| 71 | <?php /** @var $_product \Magento\Catalog\Model\Product */ ?> | 71 | <?php /** @var $_product \Magento\Catalog\Model\Product */ ?> | |||
| 72 | <?php foreach ($_productCollection as $_product): ?> | 72 | <?php foreach ($_productCollection as $_product): ?> | |||
| 73 | <?php echo($iterator++ == 1) ? '<div class="item product product-item">' : '</div><div class="item product product-item">' ?> | 73 | <?php echo($iterator++ == 1) ? '<div class="item product product-item">' : '</div><div class="item product product-item">' ?> | |||
| 74 | <div class="product-item-info type<?php echo $product_type; ?>" data-container="product-grid"> | 74 | <div class="product-item-info type<?php echo $product_type; ?>" data-container="product-grid"> | |||
| 75 | <?php // Product Image ?> | 75 | <?php // Product Image ?> | |||
| 76 | <div class="product photo product-item-photo"> | 76 | <div class="product photo product-item-photo"> | |||
| 77 | <a href="<?php echo $_product->getProductUrl() ?>" tabindex="-1"> | 77 | <a href="<?php echo $_product->getProductUrl() ?>" tabindex="-1"> | |||
| 78 | <?php | 78 | <?php | |||
| 79 | if($aspect_ratio) | 79 | if($aspect_ratio) | |||
| 80 | $productImage = $_imagehelper->init($_product, $image)->constrainOnly(FALSE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize($image_width); | 80 | $productImage = $_imagehelper->init($_product, $image)->constrainOnly(FALSE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize($image_width); | |||
| 81 | else | 81 | else | |||
| 82 | $productImage = $_imagehelper->init($_product, $image)->resize($image_width, $image_height); | 82 | $productImage = $_imagehelper->init($_product, $image)->resize($image_width, $image_height); | |||
| 83 | $productImageUrl = $productImage->getUrl(); | 83 | $productImageUrl = $productImage->getUrl(); | |||
| 84 | ?> | 84 | ?> | |||
| 85 | <img class="product-image-photo default_image <?php if(!$_lazyload): ?>porto-lazyload<?php endif;?>" <?php if(!$_lazyload): ?>data-<?php endif; ?>src="<?php echo $productImageUrl; ?>" width="<?php echo $image_width; ?>" height="<?php echo $image_height; ?>"/> | 85 | <img class="product-image-photo default_image <?php if(!$_lazyload): ?>porto-lazyload<?php endif;?>" <?php if(!$_lazyload): ?>data-<?php endif; ?>src="<?php echo $productImageUrl; ?>" width="<?php echo $image_width; ?>" height="<?php echo $image_height; ?>"/> | |||
| 86 | <?php if($_category_config['alternative_image']): ?> | 86 | <?php if($_category_config['alternative_image']): ?> | |||
| 87 | <?php | 87 | <?php | |||
| 88 | if($aspect_ratio) | 88 | if($aspect_ratio) | |||
| 89 | $productHoverImage = $_imagehelper->init($_product, $hover_image)->constrainOnly(FALSE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize($image_width); | 89 | $productHoverImage = $_imagehelper->init($_product, $hover_image)->constrainOnly(FALSE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize($image_width); | |||
| 90 | else | 90 | else | |||
| 91 | $productHoverImage = $_imagehelper->init($_product, $hover_image)->resize($image_width, $image_height); | 91 | $productHoverImage = $_imagehelper->init($_product, $hover_image)->resize($image_width, $image_height); | |||
| 92 | $productHoverImageUrl = $productHoverImage->getUrl(); | 92 | $productHoverImageUrl = $productHoverImage->getUrl(); | |||
| 93 | ?> | 93 | ?> | |||
| 94 | <?php if($productImageUrl != str_replace("/thumbnail/","/small_image/",$productHoverImageUrl)): ?> | 94 | <?php if($productImageUrl != str_replace("/thumbnail/","/small_image/",$productHoverImageUrl)): ?> | |||
| 95 | <img class="product-image-photo hover_image" src="<?php echo $productHoverImageUrl; ?>"/> | 95 | <img class="product-image-photo hover_image" src="<?php echo $productHoverImageUrl; ?>"/> | |||
| 96 | <?php endif; ?> | 96 | <?php endif; ?> | |||
| 97 | <?php endif; ?> | 97 | <?php endif; ?> | |||
| 98 | </a> | 98 | </a> | |||
| 99 | <?php | 99 | <?php | |||
| 100 | $product_label = ""; | 100 | $product_label = ""; | |||
| 101 | if($_product_label_config['sale_label']) { | 101 | if($_product_label_config['sale_label']) { | |||
| 102 | $orgprice = $_product->getPrice(); | 102 | $orgprice = $_product->getPrice(); | |||
| 103 | $specialprice = $_product->getSpecialPrice(); | 103 | $specialprice = $_product->getSpecialPrice(); | |||
| 104 | $specialfromdate = $_product->getSpecialFromDate(); | 104 | $specialfromdate = $_product->getSpecialFromDate(); | |||
| 105 | $specialtodate = $_product->getSpecialToDate(); | 105 | $specialtodate = $_product->getSpecialToDate(); | |||
| 106 | $today = time(); | 106 | $today = time(); | |||
| 107 | if(!$specialprice) | 107 | if(!$specialprice) | |||
| 108 | $specialprice = $orgprice; | 108 | $specialprice = $orgprice; | |||
| 109 | if($specialprice < $orgprice) { | 109 | if($specialprice < $orgprice) { | |||
| 110 | if((is_null($specialfromdate) && is_null($specialtodate)) || ($today >= strtotime($specialfromdate) && is_null($specialtodate)) || ($today <= strtotime($specialtodate) && is_null($specialfromdate)) || ($today >= strtotime($specialfromdate) && $today <= strtotime($specialtodate))){ | 110 | if((is_null($specialfromdate) && is_null($specialtodate)) || ($today >= strtotime($specialfromdate) && is_null($specialtodate)) || ($today <= strtotime($specialtodate) && is_null($specialfromdate)) || ($today >= strtotime($specialfromdate) && $today <= strtotime($specialtodate))){ | |||
| 111 | if($_product_label_config['sale_label_percent']) { | 111 | if($_product_label_config['sale_label_percent']) { | |||
| 112 | $save_percent = 100-round(($specialprice/$orgprice)*100); | 112 | $save_percent = 100-round(($specialprice/$orgprice)*100); | |||
| 113 | $product_label .= '<div class="product-label sale-label">'.'-'.$save_percent.'%'.'</div>'; | 113 | $product_label .= '<div class="product-label sale-label">'.'-'.$save_percent.'%'.'</div>'; | |||
| 114 | } else { | 114 | } else { | |||
| 115 | $product_label .= '<div class="product-label sale-label">'.$_product_label_config['sale_label_text'].'</div>'; | 115 | $product_label .= '<div class="product-label sale-label">'.$_product_label_config['sale_label_text'].'</div>'; | |||
| 116 | } | 116 | } | |||
| 117 | } | 117 | } | |||
| 118 | } | 118 | } | |||
| 119 | } | 119 | } | |||
| 120 | if($_product_label_config['new_label']) { | 120 | if($_product_label_config['new_label']) { | |||
| 121 | $now = date("Y-m-d"); | 121 | $now = date("Y-m-d"); | |||
| 122 | $newsFrom= substr($_product->getData('news_from_date'),0,10); | 122 | $newsFrom= substr($_product->getData('news_from_date'),0,10); | |||
| 123 | $newsTo= substr($_product->getData('news_to_date'),0,10); | 123 | $newsTo= substr($_product->getData('news_to_date'),0,10); | |||
| 124 | 124 | |||||
| 125 | if ($newsTo != '' || $newsFrom != ''){ | 125 | if ($newsTo != '' || $newsFrom != ''){ | |||
| 126 | if (($newsTo != '' && $newsFrom != '' && $now>=$newsFrom && $now<=$newsTo) || ($newsTo == '' && $now >=$newsFrom) || ($newsFrom == '' && $now<=$newsTo)) { | 126 | if (($newsTo != '' && $newsFrom != '' && $now>=$newsFrom && $now<=$newsTo) || ($newsTo == '' && $now >=$newsFrom) || ($newsFrom == '' && $now<=$newsTo)) { | |||
| 127 | $product_label .= '<div class="product-label new-label">'.$_product_label_config['new_label_text'].'</div>'; | 127 | $product_label .= '<div class="product-label new-label">'.$_product_label_config['new_label_text'].'</div>'; | |||
| 128 | } | 128 | } | |||
| 129 | } | 129 | } | |||
| 130 | } | 130 | } | |||
| 131 | if($product_label) | 131 | if($product_label) | |||
| 132 | echo '<div class="product-labels">'.$product_label.'</div>'; | 132 | echo '<div class="product-labels">'.$product_label.'</div>'; | |||
| 133 | ?> | 133 | ?> | |||
| 134 | <?php if($product_type == 3 || $product_type == 5 || $product_type == 6 || $product_type == 7 || $product_type == 8 || $product_type == 9): ?> | 134 | <?php if($product_type == 3 || $product_type == 5 || $product_type == 6 || $product_type == 7 || $product_type == 8 || $product_type == 9): ?> | |||
| 135 | <div class="product-item-inner"> | 135 | <div class="product-item-inner"> | |||
| 136 | <div class="product actions product-item-actions"> | 136 | <div class="product actions product-item-actions"> | |||
| 137 | <div class="actions-primary"> | 137 | <div class="actions-primary"> | |||
| 138 | <?php if ($_product->isSaleable()): ?> | 138 | <?php if ($_product->isSaleable()): ?> | |||
| 139 | <?php $postParams = $block->getAddToCartPostParams($_product); ?> | 139 | <?php $postParams = $block->getAddToCartPostParams($_product); ?> | |||
| 140 | <form data-role="tocart-form" action="<?php echo $postParams['action']; ?>" method="post"> | 140 | <form data-role="tocart-form" action="<?php echo $postParams['action']; ?>" method="post"> | |||
| 141 | <input type="hidden" name="product" value="<?php echo $postParams['data']['product']; ?>"> | 141 | <input type="hidden" name="product" value="<?php echo $postParams['data']['product']; ?>"> | |||
| 142 | <input type="hidden" name="<?php echo Action::PARAM_NAME_URL_ENCODED; ?>" value="<?php echo $postParams['data'][Action::PARAM_NAME_URL_ENCODED]; ?>"> | 142 | <input type="hidden" name="<?php echo Action::PARAM_NAME_URL_ENCODED; ?>" value="<?php echo $postParams['data'][Action::PARAM_NAME_URL_ENCODED]; ?>"> | |||
| 143 | <?php if(isset($_category_config['qty_field']) && $_category_config['qty_field']):?> | 143 | <?php if(isset($_category_config['qty_field']) && $_category_config['qty_field']):?> | |||
| 144 | <div class="qty-box"> | 144 | <div class="qty-box"> | |||
| 145 | <a href="javascript:void(0)" class="qtyminus"><i class="porto-icon-minus"></i></a> | 145 | <a href="javascript:void(0)" class="qtyminus"><i class="porto-icon-minus"></i></a> | |||
| 146 | <input type="text" name="qty" id="qty" maxlength="12" value="<?php /* @escapeNotVerified */ echo $block->getProductDefaultQty() * 1 ?>" title="<?php /* @escapeNotVerified */ echo __('Qty') ?>" class="input-text qty" data-validate="<?php echo $block->escapeHtml(json_encode($block->getQuantityValidators())) ?>"/> | 146 | <input type="text" name="qty" id="qty" maxlength="12" value="<?php /* @escapeNotVerified */ echo $block->getProductDefaultQty() * 1 ?>" title="<?php /* @escapeNotVerified */ echo __('Qty') ?>" class="input-text qty" data-validate="<?php echo $block->escapeHtml(json_encode($block->getQuantityValidators())) ?>"/> | |||
| 147 | <a href="javascript:void(0)" class="qtyplus"><i class="porto-icon-plus"></i></a> | 147 | <a href="javascript:void(0)" class="qtyplus"><i class="porto-icon-plus"></i></a> | |||
| 148 | </div> | 148 | </div> | |||
| 149 | <?php endif;?> | 149 | <?php endif;?> | |||
| 150 | <?php echo $block->getBlockHtml('formkey')?> | 150 | <?php echo $block->getBlockHtml('formkey')?> | |||
| 151 | <button type="submit" | 151 | <button type="submit" | |||
| 152 | title="<?php echo $block->escapeHtml(__('Add to Cart')); ?>" | 152 | title="<?php echo $block->escapeHtml(__('Add to Cart')); ?>" | |||
| 153 | class="action tocart primary"> | 153 | class="action tocart primary"> | |||
| 154 | <span><?php echo __('Add to Cart') ?></span> | 154 | <span><?php echo __('Add to Cart') ?></span> | |||
| 155 | </button> | 155 | </button> | |||
| 156 | </form> | 156 | </form> | |||
| 157 | <?php else: ?> | 157 | <?php else: ?> | |||
| 158 | <?php if ($_product->getIsSalable()): ?> | 158 | <?php if ($_product->getIsSalable()): ?> | |||
| 159 | <div class="stock available"><span><?php echo __('In stock') ?></span></div> | 159 | <div class="stock available"><span><?php echo __('In stock') ?></span></div> | |||
| 160 | <?php else: ?> | 160 | <?php else: ?> | |||
| 161 | <div class="stock unavailable"><span><?php echo __('Out of stock') ?></span></div> | 161 | <div class="stock unavailable"><span><?php echo __('Out of stock') ?></span></div> | |||
| 162 | <?php endif; ?> | 162 | <?php endif; ?> | |||
| 163 | <?php endif; ?> | 163 | <?php endif; ?> | |||
| 164 | </div> | 164 | </div> | |||
| 165 | <?php if ($block->getMode() == 'grid'): ?> | 165 | <?php if ($block->getMode() == 'grid'): ?> | |||
| 166 | <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()): ?> | 166 | <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()): ?> | |||
| 167 | <a href="#" | 167 | <a href="#" | |||
| 168 | class="action towishlist actions-secondary" | 168 | class="action towishlist actions-secondary" | |||
| 169 | title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" | 169 | title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" | |||
| 170 | aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" | 170 | aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" | |||
| 171 | data-post='<?php echo $block->getAddToWishlistParams($_product); ?>' | 171 | data-post='<?php echo $block->getAddToWishlistParams($_product); ?>' | |||
| 172 | data-action="add-to-wishlist" | 172 | data-action="add-to-wishlist" | |||
| 173 | role="button"> | 173 | role="button"> | |||
| 174 | <span><?php echo __('Add to Wish List') ?></span> | 174 | <span><?php echo __('Add to Wish List') ?></span> | |||
| 175 | </a> | 175 | </a> | |||
| 176 | <?php endif; ?> | 176 | <?php endif; ?> | |||
| 177 | <?php endif; ?> | 177 | <?php endif; ?> | |||
| 178 | <?php if($_category_config['addtocompare']): ?> | 178 | <?php if($_category_config['addtocompare']): ?> | |||
| 179 | <?php | 179 | <?php | |||
| 180 | $compareHelper = $this->helper('Magento\Catalog\Helper\Product\Compare'); | 180 | $compareHelper = $this->helper('Magento\Catalog\Helper\Product\Compare'); | |||
| 181 | ?> | 181 | ?> | |||
| 182 | <a href="#" | 182 | <a href="#" | |||
| 183 | class="action tocompare actions-secondary" | 183 | class="action tocompare actions-secondary" | |||
| 184 | title="<?php echo $block->escapeHtml(__('Add to Compare')); ?>" | 184 | title="<?php echo $block->escapeHtml(__('Add to Compare')); ?>" | |||
| 185 | aria-label="<?php echo $block->escapeHtml(__('Add to Compare')); ?>" | 185 | aria-label="<?php echo $block->escapeHtml(__('Add to Compare')); ?>" | |||
| 186 | data-post='<?php echo $compareHelper->getPostDataParams($_product); ?>' | 186 | data-post='<?php echo $compareHelper->getPostDataParams($_product); ?>' | |||
| 187 | role="button"> | 187 | role="button"> | |||
| 188 | <span><?php echo __('Add to Compare') ?></span> | 188 | <span><?php echo __('Add to Compare') ?></span> | |||
| 189 | </a> | 189 | </a> | |||
| 190 | <?php endif; ?> | 190 | <?php endif; ?> | |||
| 191 | </div> | 191 | </div> | |||
| 192 | </div> | 192 | </div> | |||
| 193 | <?php endif; ?> | 193 | <?php endif; ?> | |||
| 194 | </div> | 194 | </div> | |||
| 195 | <div class="product details product-item-details"> | 195 | <div class="product details product-item-details"> | |||
| 196 | <?php | 196 | <?php | |||
| 197 | $_productNameStripped = $block->stripTags($_product->getName(), null, true); | 197 | $_productNameStripped = $block->stripTags($_product->getName(), null, true); | |||
| 198 | ?> | 198 | ?> | |||
| 199 | <strong class="product name product-item-name"> | 199 | <strong class="product name product-item-name"> | |||
| 200 | <a class="product-item-link" | 200 | <a class="product-item-link" | |||
| 201 | href="<?php echo $_product->getProductUrl() ?>"> | 201 | href="<?php echo $_product->getProductUrl() ?>"> | |||
| 202 | <?php echo $_helper->productAttribute($_product, $_product->getName(), 'name'); ?> | 202 | <?php echo $_helper->productAttribute($_product, $_product->getName(), 'name'); ?> | |||
| 203 | </a> | 203 | </a> | |||
| 204 | </strong> | 204 | </strong> | |||
| 205 | <?php //$_category_config['rating_star'] = ""; //disabled at the moment ?> | 205 | <?php //$_category_config['rating_star'] = ""; //disabled at the moment ?> | |||
| 206 | <?php if($_category_config['rating_star']): ?> | 206 | <?php if($_category_config['rating_star']): ?> | |||
| 207 | <?php | 207 | <?php | |||
| 208 | $review_model->getEntitySummary($_product); | 208 | $review_model->getEntitySummary($_product); | |||
| 209 | $review_html = $block->getReviewsSummaryHtml($_product, $templateType); | 209 | $review_html = $block->getReviewsSummaryHtml($_product, $templateType); | |||
| 210 | ?> | 210 | ?> | |||
| 211 | <?php if($review_html): ?> | 211 | <?php if($review_html): ?> | |||
| 212 | <?php echo $block->getReviewsSummaryHtml($_product, $templateType); ?> | 212 | <?php echo $block->getReviewsSummaryHtml($_product, $templateType); ?> | |||
| 213 | <?php else: ?> | 213 | <?php else: ?> | |||
| 214 | <div class="product-reviews-summary short"> | 214 | <div class="product-reviews-summary short"> | |||
| 215 | <div class="rating-summary"> | 215 | <div class="rating-summary"> | |||
| 216 | <span class="label"><span>Rating:</span></span> | 216 | <span class="label"><span>Rating:</span></span> | |||
| 217 | <div class="rating-result" title="0%"> | 217 | <div class="rating-result" title="0%"> | |||
| 218 | <span style="width:0"><span>0%</span></span> | 218 | <span style="width:0"><span>0%</span></span> | |||
| 219 | </div> | 219 | </div> | |||
| 220 | </div> | 220 | </div> | |||
| 221 | </div> | 221 | </div> | |||
| 222 | <?php endif; ?> | 222 | <?php endif; ?> | |||
| 223 | <?php endif; ?> | 223 | <?php endif; ?> | |||
| 224 | 224 | |||||
| 225 | <?php if ($showDescription):?> | 225 | <?php if ($showDescription):?> | |||
| 226 | <div class="product description product-item-description"> | 226 | <div class="product description product-item-description"> | |||
| 227 | <?php echo $_helper->productAttribute($_product, $_product->getShortDescription(), 'short_description') ?> | 227 | <?php echo $_helper->productAttribute($_product, $_product->getShortDescription(), 'short_description') ?> | |||
| 228 | <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped ?>" | 228 | <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped ?>" | |||
| 229 | class="action more"><?php echo __('Learn More') ?></a> | 229 | class="action more"><?php echo __('Learn More') ?></a> | |||
| 230 | </div> | 230 | </div> | |||
| 231 | <?php endif; ?> | 231 | <?php endif; ?> | |||
| 232 | <?php if($_category_config['product_price']): ?> | 232 | <?php if($_category_config['product_price']): ?> | |||
| 233 | <?php echo $block->getProductPrice($_product) ?> | 233 | <?php echo $block->getProductPrice($_product) ?> | |||
| 234 | <?php endif; ?> | 234 | <?php endif; ?> | |||
| 235 | <?php echo $block->getProductDetailsHtml($_product); ?> | 235 | <?php echo $block->getProductDetailsHtml($_product); ?> | |||
| 236 | 236 | |||||
| 237 | <?php if($product_type != 3 && $product_type != 5 && $product_type != 6 && $product_type != 7 && $product_type != 8 && $product_type != 9): ?> | 237 | <?php if($product_type != 3 && $product_type != 5 && $product_type != 6 && $product_type != 7 && $product_type != 8 && $product_type != 9): ?> | |||
| 238 | <div class="product-item-inner"> | 238 | <div class="product-item-inner"> | |||
| 239 | <div class="product actions product-item-actions"> | 239 | <div class="product actions product-item-actions"> | |||
| 240 | <?php if ($block->getMode() == 'grid'): ?> | 240 | <?php if ($block->getMode() == 'grid'): ?> | |||
| 241 | <?php if($_category_config['addtowishlist'] && $product_type != 4): ?> | 241 | <?php if($_category_config['addtowishlist'] && $product_type != 4): ?> | |||
| 242 | <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()): ?> | 242 | <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()): ?> | |||
| 243 | <a href="#" | 243 | <a href="#" | |||
| 244 | class="action towishlist actions-secondary <?php if(isset($_category_config['qty_field']) && $_category_config['qty_field']):?>has-qty<?php endif;?>" | 244 | class="action towishlist actions-secondary <?php if(isset($_category_config['qty_field']) && $_category_config['qty_field']):?>has-qty<?php endif;?>" | |||
| 245 | title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" | 245 | title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" | |||
| 246 | aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" | 246 | aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" | |||
| 247 | data-post='<?php echo $block->getAddToWishlistParams($_product); ?>' | 247 | data-post='<?php echo $block->getAddToWishlistParams($_product); ?>' | |||
| 248 | data-action="add-to-wishlist" | 248 | data-action="add-to-wishlist" | |||
| 249 | role="button"> | 249 | role="button"> | |||
| 250 | <span><?php echo __('Add to Wish List') ?></span> | 250 | <span><?php echo __('Add to Wish List') ?></span> | |||
| 251 | </a> | 251 | </a> | |||
| 252 | <?php endif; ?> | 252 | <?php endif; ?> | |||
| 253 | <?php endif; ?> | 253 | <?php endif; ?> | |||
| 254 | <?php endif; ?> | 254 | <?php endif; ?> | |||
| 255 | <div class="actions-primary"> | 255 | <div class="actions-primary"> | |||
| 256 | <?php if ($_product->isSaleable()): ?> | 256 | <?php if ($_product->isSaleable()): ?> | |||
| 257 | <?php $postParams = $block->getAddToCartPostParams($_product); ?> | 257 | <?php $postParams = $block->getAddToCartPostParams($_product); ?> | |||
| 258 | <form data-role="tocart-form" action="<?php echo $postParams['action']; ?>" method="post"> | 258 | <form data-role="tocart-form" action="<?php echo $postParams['action']; ?>" method="post"> | |||
| 259 | <input type="hidden" name="product" value="<?php echo $postParams['data']['product']; ?>"> | 259 | <input type="hidden" name="product" value="<?php echo $postParams['data']['product']; ?>"> | |||
| 260 | <input type="hidden" name="<?php echo Action::PARAM_NAME_URL_ENCODED; ?>" value="<?php echo $postParams['data'][Action::PARAM_NAME_URL_ENCODED]; ?>"> | 260 | <input type="hidden" name="<?php echo Action::PARAM_NAME_URL_ENCODED; ?>" value="<?php echo $postParams['data'][Action::PARAM_NAME_URL_ENCODED]; ?>"> | |||
| 261 | <?php if(isset($_category_config['qty_field']) && $_category_config['qty_field']):?> | 261 | <?php if(isset($_category_config['qty_field']) && $_category_config['qty_field']):?> | |||
| 262 | <div class="qty-box"> | 262 | <div class="qty-box"> | |||
| 263 | <a href="javascript:void(0)" class="qtyminus"><i class="porto-icon-minus"></i></a> | 263 | <a href="javascript:void(0)" class="qtyminus"><i class="porto-icon-minus"></i></a> | |||
| 264 | <input type="text" name="qty" id="qty" maxlength="12" value="<?php /* @escapeNotVerified */ echo $block->getProductDefaultQty() * 1 ?>" title="<?php /* @escapeNotVerified */ echo __('Qty') ?>" class="input-text qty" data-validate="<?php echo $block->escapeHtml(json_encode($block->getQuantityValidators())) ?>"/> | 264 | <input type="text" name="qty" id="qty" maxlength="12" value="<?php /* @escapeNotVerified */ echo $block->getProductDefaultQty() * 1 ?>" title="<?php /* @escapeNotVerified */ echo __('Qty') ?>" class="input-text qty" data-validate="<?php echo $block->escapeHtml(json_encode($block->getQuantityValidators())) ?>"/> | |||
| 265 | <a href="javascript:void(0)" class="qtyplus"><i class="porto-icon-plus"></i></a> | 265 | <a href="javascript:void(0)" class="qtyplus"><i class="porto-icon-plus"></i></a> | |||
| 266 | </div> | 266 | </div> | |||
| 267 | <?php endif;?> | 267 | <?php endif;?> | |||
| 268 | <?php echo $block->getBlockHtml('formkey')?> | 268 | <?php echo $block->getBlockHtml('formkey')?> | |||
| 269 | <button type="submit" | 269 | <button type="submit" | |||
| 270 | title="<?php echo $block->escapeHtml(__('Add to Cart')); ?>" | 270 | title="<?php echo $block->escapeHtml(__('Add to Cart')); ?>" | |||
| 271 | class="action tocart primary"> | 271 | class="action tocart primary"> | |||
| 272 | <span><?php echo __('Add to Cart') ?></span> | 272 | <span><?php echo __('Add to Cart') ?></span> | |||
| 273 | </button> | 273 | </button> | |||
| 274 | </form> | 274 | </form> | |||
| 275 | <?php else: ?> | 275 | <?php else: ?> | |||
| 276 | <?php if ($_product->getIsSalable()): ?> | 276 | <?php if ($_product->getIsSalable()): ?> | |||
| 277 | <div class="stock available"><span><?php echo __('In stock') ?></span></div> | 277 | <div class="stock available"><span><?php echo __('In stock') ?></span></div> | |||
| 278 | <?php else: ?> | 278 | <?php else: ?> | |||
| 279 | <div class="stock unavailable"><span><?php echo __('Out of stock') ?></span></div> | 279 | <div class="stock unavailable"><span><?php echo __('Out of stock') ?></span></div> | |||
| 280 | <?php endif; ?> | 280 | <?php endif; ?> | |||
| 281 | <?php endif; ?> | 281 | <?php endif; ?> | |||
| 282 | </div> | 282 | </div> | |||
| 283 | <?php if ($block->getMode() == 'grid'): ?> | 283 | <?php if ($block->getMode() == 'grid'): ?> | |||
| 284 | <?php if($_category_config['addtowishlist'] && $product_type == 4): ?> | 284 | <?php if($_category_config['addtowishlist'] && $product_type == 4): ?> | |||
| 285 | <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()): ?> | 285 | <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()): ?> | |||
| 286 | <a href="#" | 286 | <a href="#" | |||
| 287 | class="action towishlist actions-secondary <?php if(isset($_category_config['qty_field']) && $_category_config['qty_field']):?>has-qty<?php endif;?>" | 287 | class="action towishlist actions-secondary <?php if(isset($_category_config['qty_field']) && $_category_config['qty_field']):?>has-qty<?php endif;?>" | |||
| 288 | title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" | 288 | title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" | |||
| 289 | aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" | 289 | aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" | |||
| 290 | data-post='<?php echo $block->getAddToWishlistParams($_product); ?>' | 290 | data-post='<?php echo $block->getAddToWishlistParams($_product); ?>' | |||
| 291 | data-action="add-to-wishlist" | 291 | data-action="add-to-wishlist" | |||
| 292 | role="button"> | 292 | role="button"> | |||
| 293 | <span><?php echo __('Add to Wish List') ?></span> | 293 | <span><?php echo __('Add to Wish List') ?></span> | |||
| 294 | </a> | 294 | </a> | |||
| 295 | <?php endif; ?> | 295 | <?php endif; ?> | |||
| 296 | <?php endif; ?> | 296 | <?php endif; ?> | |||
| 297 | <?php endif; ?> | 297 | <?php endif; ?> | |||
| 298 | <?php if($_category_config['addtocompare']): ?> | 298 | <?php if($_category_config['addtocompare']): ?> | |||
| 299 | <?php | 299 | <?php | |||
| 300 | $compareHelper = $this->helper('Magento\Catalog\Helper\Product\Compare'); | 300 | $compareHelper = $this->helper('Magento\Catalog\Helper\Product\Compare'); | |||
| 301 | ?> | 301 | ?> | |||
| 302 | <a href="#" | 302 | <a href="#" | |||
| 303 | class="action tocompare actions-secondary <?php if(isset($_category_config['qty_field']) && $_category_config['qty_field']):?>has-qty<?php endif;?>" | 303 | class="action tocompare actions-secondary <?php if(isset($_category_config['qty_field']) && $_category_config['qty_field']):?>has-qty<?php endif;?>" | |||
| 304 | title="<?php echo $block->escapeHtml(__('Add to Compare')); ?>" | 304 | title="<?php echo $block->escapeHtml(__('Add to Compare')); ?>" | |||
| 305 | aria-label="<?php echo $block->escapeHtml(__('Add to Compare')); ?>" | 305 | aria-label="<?php echo $block->escapeHtml(__('Add to Compare')); ?>" | |||
| 306 | data-post='<?php echo $compareHelper->getPostDataParams($_product); ?>' | 306 | data-post='<?php echo $compareHelper->getPostDataParams($_product); ?>' | |||
| 307 | role="button"> | 307 | role="button"> | |||
| 308 | <span><?php echo __('Add to Compare') ?></span> | 308 | <span><?php echo __('Add to Compare') ?></span> | |||
| 309 | </a> | 309 | </a> | |||
| 310 | <?php endif; ?> | 310 | <?php endif; ?> | |||
| 311 | </div> | 311 | </div> | |||
| 312 | </div> | 312 | </div> | |||
| 313 | <?php endif; ?> | 313 | <?php endif; ?> | |||
| 314 | </div> | 314 | </div> | |||
| 315 | </div> | 315 | </div> | |||
| 316 | <?php echo($iterator == count($_productCollection)+1) ? '</div>' : '' ?> | 316 | <?php echo($iterator == count($_productCollection)+1) ? '</div>' : '' ?> | |||
| 317 | <?php endforeach; ?> | 317 | <?php endforeach; ?> | |||
| 318 | </div> | 318 | </div> | |||
| 319 | </div> | 319 | </div> | |||
| 320 | <?php if (!$block->isRedirectToCartEnabled()) : ?> | 320 | <?php if (!$block->isRedirectToCartEnabled()) : ?> | |||
| 321 | <script type="text/x-magento-init"> | 321 | <script type="text/x-magento-init"> | |||
| 322 | { | 322 | { | |||
| 323 | "[data-role=tocart-form], .form.map.checkout": { | 323 | "[data-role=tocart-form], .form.map.checkout": { | |||
| 324 | "catalogAddToCart": {} | 324 | "catalogAddToCart": {} | |||
| 325 | } | 325 | } | |||
| 326 | } | 326 | } | |||
| 327 | </script> | 327 | </script> | |||
| 328 | <?php endif; ?> | 328 | <?php endif; ?> | |||
| 329 | <script type="text/javascript"> | 329 | <script type="text/javascript"> | |||
| 330 | require([ | 330 | require([ | |||
| 331 | 'jquery', | 331 | 'jquery', | |||
| 332 | 'owl.carousel/owl.carousel.min' | 332 | 'owl.carousel/owl.carousel.min' | |||
| 333 | ], function ($) { | 333 | ], function ($) { | |||
| 334 | $("#cat_prod_<?php echo $category_id; ?> .owl-carousel").owlCarousel({ | 334 | $("#cat_prod_<?php echo $category_id; ?> .owl-carousel").owlCarousel({ | |||
| 335 | autoplay: true, | 335 | autoplay: true, | |||
| 336 | autoplayTimeout: 5000, | 336 | autoplayTimeout: 5000, | |||
| 337 | autoplayHoverPause: true, | 337 | autoplayHoverPause: true, | |||
| 338 | loop: true, | 338 | loop: true, | |||
| 339 | navRewind: true, | 339 | navRewind: true, | |||
| 340 | margin: 10, | 340 | margin: 10, | |||
| 341 | nav: false, | 341 | nav: false, | |||
| 342 | navText: ["<em class='porto-icon-left-open-huge'></em>","<em class='porto-icon-right-open-huge'></em>"], | 342 | dots: false, | |||
| 343 | dots: true, | |||||
| 344 | lazyLoad: true, | 343 | lazyLoad: true, | |||
| 345 | responsive: <?php echo $columns; ?> | 344 | responsive: <?php echo $columns; ?> | |||
| 346 | }); | 345 | }); | |||
| 347 | }); | 346 | }); | |||
| 348 | </script> | 347 | </script> | |||
| 349 | <?php endif; ?> | 348 | <?php endif; ?> | |||
| 350 | </div> | 349 | </div> |
Araxis Merge (but not the data content of this report) is Copyright © 1993–2019 Araxis Ltd (www.araxis.com). All rights reserved.